"""
ResumeForm是一个基于Django的ModelForm，用于生成简历表单。它从Resume模型中获取字段，包括用户名、城市、电话、电子邮件、申请职位、出生地址、性别、图片、附件、本科学校、硕士学校、专业、学位、候选人介绍、工作经验和项目经验等。

AddStudentForm是一个基于Django的ModelForm，用于添加学生信息。它从Student模型中获取'email'字段。
"""

from django.forms import ModelForm

from .models import Resume


class ResumeForm(ModelForm):
    class Meta:
        model = Resume

        fields = ["username", "city", "phone",
        "email", "apply_position", "born_address", "gender", "picture", "attachment",
        "bachelor_school", "master_school", "major", "degree", 
        "candidate_introduction", "work_experience", "project_experience"]


from .models import Student
from django import forms

class AddStudentForm(forms.ModelForm):
    class Meta:
        model = Student
        fields = ['email']